<template>
  <a-result status="404" title="404" sub-title="没有找到页面">
    <template #extra>
      <a-button type="primary" @click="handleBack">返回首页</a-button>
    </template>
  </a-result>
</template>

<script lang="ts">
import { LOGIN } from '@/router/route-name';
import { defineComponent } from 'vue';
import { useRouter } from 'vue-router';
export default defineComponent({
  components: {},
  setup() {
    const router = useRouter();
    const handleBack = () => {
      router.push({ name: LOGIN });
    };
    return { handleBack };
  },
});
</script>
<style lang="less" scoped></style>
